package Experiment1;

import org.junit.jupiter.api.Test;

import java.util.ArrayList;
import java.util.List;

import static org.junit.jupiter.api.Assertions.*;

/**
 * Created by zhangyunqi on 2017/9/26.
 */
class MergeListTest {
    private static List alist = new ArrayList();
    private static List blist = new ArrayList();
    @Test
    void mergeSortedList() {
        alist.add ( 1 );
        alist.add ( 1 );
        alist.add ( 3 );
        alist.add ( 8 );
        alist.add ( 10 );
        alist.add ( 11 );
        blist.add ( 1 );
        blist.add ( 2 );
        blist.add ( 4 );
        blist.add ( 4 );
        blist.add ( 9 );
        blist.add ( 12 );
         List list = MergeList.mergeSortedList ( alist,blist );
        assertEquals ( "[1, 1, 1, 2, 3, 4, 4, 8, 9, 10, 11, 12]", list.toString () );
    }

}